<template>
  <div>
    <dataList
      placeholder="请输入资产名称"
      :pageInfo="pager"
      :listData="tableData"
      :selectData="selectDataArr"
      searchName="assetName"
      :menuList="['add','delete']"
      :filterList="filterList"
      @menu-click="handleMenuClick"
      openSelection
    >
      <el-table ref="multipleTable" align="center" :data="tableData" style="width: 100%" @selection-change="$event => (selectDataArr = $event)">
        <el-table-column type="selection" width="55"></el-table-column>
        <el-table-column label="第三方评估机构报告编号" prop="cardNum"></el-table-column>
        <el-table-column label="通讯地址">
          <template slot-scope="scope">{{ scope.row.area }}{{ scope.row.address}}</template>
        </el-table-column>
        <el-table-column label="资产名称" prop="assetName"></el-table-column>
        <el-table-column label="建筑面积(m²)" prop="landArea"></el-table-column>
        <el-table-column label="登记价(元)" prop="registrationPrice"></el-table-column>
        <el-table-column label="登记日期" prop="registrationDate"></el-table-column>
        <el-table-column label="证件类型" prop="cardType">
          <template slot-scope="scope">{{getCardTypeValue(scope.row.cardType)}}</template>
        </el-table-column>
        <el-table-column label="操作">
          <template slot-scope="scope">
            <el-button type="text" @click="handleToLook(scope.row)">查看</el-button>
            <span v-if="scope.row.warehousingStatus === 0">|</span>
            <el-button v-if="scope.row.warehousingStatus === 0" type="text" @click="handleToEdit(scope.row)">修改</el-button>
          </template>
        </el-table-column>
      </el-table>
    </dataList>
  </div>
</template>

<script src="./third-party.js">

</script>

<style scoped>
</style>
